package com.mathdroid.model.encounters;

/**
 * Utility class to create default encounters.
 */
public final class EncounterFactory {
	
	/**
	 * The name of the default template.
	 */
	public static final String DEFAULT = "Default";

	/**
	 * Hidden default constructor.
	 */
	private EncounterFactory() { }
	
	/**
	 * Create the default encounter templates.
	 * @return Default templates.
	 */
	public static EncounterTemplates getDefaultTemplates() {
		EncounterTemplates t = new EncounterTemplates();
		EncounterTemplate defaultEncounter = new EncounterTemplate(DEFAULT);
		
		final int minutes = 10;
		final int minuteInSeconds = 60;
		final int secondInMillies = 1000;
		defaultEncounter.setDurationMs(
				minutes * minuteInSeconds * secondInMillies);
		
		t.put(defaultEncounter.toString(), defaultEncounter);
		
		return t;
	}
	
}
